package com.me.mysqladmin.entity;

import java.io.Serializable;

/**
 * 当前位置
 * @author dong
 */
public class Location implements Serializable {
	private static final long serialVersionUID = 1L;

	// 主机名称（定位一个数据库服务器）
	private String serverName;
	
	// 数据库名称（定位一个数据库实例）
	private String databaseName;
	
	// 表名称（定位一张表）
	private String tableName;
	
	// 表主键字段（定位一条记录）
	private String primaryKey;
	
	public Location() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public String getDatabaseName() {
		return databaseName;
	}

	public void setDatabaseName(String databaseName) {
		this.databaseName = databaseName;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	
	public String getPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(String primaryKey) {
		this.primaryKey = primaryKey;
	}

	@Override
	public String toString() {
		return "Location [serverName=" + serverName + ", databaseName="
				+ databaseName + ", tableName=" + tableName + ", primaryKey="
				+ primaryKey + "]";
	}
}
